<template>
  <button @click="handleError">Clear errors</button>
</template>

<script setup lang="ts">
const props = defineProps({
  error: Object
})

console.log('错误原因', props.error);

const handleError = () => clearError({ redirect: '/' })
</script>
